//describe("sayHi", function() {
//
//	it("should say hi to Kostas", function() {
//		expect(sayHi("Kostas")).toBe("Hi Kostas")
//	})
//
//	it("should say hi to Tina", function() {
//		expect(sayHi("Tina")).toBe("Hi Tina")
//	})
//})

describe("prove that addition works", function() {
	it("should add 5 and 7 and result is 12", function() {
		expect(add(5, 7)).toBe(12)
	})
})

describe("compare ages", function() {

	var u1 = {
		name : 'tina',
		surname : 'ivanova',
		age : 18
	};

	var u2 = {
		name : 'kostas',
		surname : 'kougios',
		age : 25
	};

	var u3 = {
		name : 'lubomir',
		surname : 'ivanov',
		age : 18
	};

	it("user1 younger than user2", function() {
		expect(UserManagement.comparison(u1, u2)).toBe("tina is younger than kostas");
	})

	it("user2 older than user1", function() {
		expect(UserManagement.comparison(u2, u1)).toBe("kostas is older than tina");
	})

	it("user1 same age as user3", function() {
		expect(UserManagement.comparison(u1, u3)).toBe("tina is same age as lubomir");
	})
})